<?php

namespace App\Http\Presenters;

use Laracasts\Presenter\Presenter;


class BorrowPresenter extends Presenter
{

    public function BorrowStatus()
    {
        $value = '';
        switch ($this->status) {
            case 1:
                $value = '<span class="green b">已还</span>';
                break;
            case 0:
                $value = '<span class="red b">未还</span>';
                break;

            default:
                break;
        }
        return $value;
    }


}
